#include "IndexBox.h"

IndexBox* IndexBox::create(const char *pszFileName, const CCRect& rect)
{
	IndexBox* indexBox = new IndexBox();
	if(indexBox && indexBox->initWithFile(pszFileName, rect))
	{
		indexBox->autorelease();
		return indexBox;
	}

	CC_SAFE_DELETE(indexBox);

	return NULL;
}

